﻿using System;
using System.Collections.Generic;
using System.Text;
using Validate.Library;

namespace Authority.Model
{
    /// <summary>
    /// 增加角色子节点请求信息
    /// </summary>
    public class RoleChildRequest
    {
        /// <summary>
        /// gParentCode
        /// </summary>
        [Validate(ValidateType.NotEmpty | ValidateType.MaxLength, MaxLength = 50, Description = "gParentCode")]
        public string gParentCode
        {
            get; set;
        }

        /// <summary>
        /// 角色名称
        /// </summary>
        [Validate(ValidateType.NotEmpty | ValidateType.MaxLength, MaxLength = 25, Description = "角色名称")]
        public string sName
        {
            get; set;
        }

        /// <summary>
        /// 备注
        /// </summary>
        public string sContent
        {
            get; set;
        }

        /// <summary>
        /// 排序字段
        /// </summary>
        [Validate(ValidateType.NotEmpty, Regex = ValidateRegex.Number, Description = "排序字段")]
        public int iSort
        {
            get; set;
        }
    }
}
